import axios from "axios";
axios.defaults.baseURL = `http://127.0.0.1:8002`;

export const getCategoriesAPI = (params) => {
  return axios.get("/categroy/findCategroy", { params });
};
export const addCategoriesAPI = (params) => {
  return axios.post("/categroy/addCategroy", params);
};
export const getCascadeAPI = () => {
  return axios.get("/categroy/findAllCategroy");
};
